<template>
	<view class="content" @click="getodemo">
		跳转到demo
	</view>
	<view class="content" @click="getoindex">
		跳转到 tabBar 页面(主页)，并关闭其他所有非 tabBar 页面
	</view>
	

</template>

<script setup>
function getodemo(){
	uni.reLaunch({
		url:"/pages/demo/demo"
	})
}
function getoindex(){
	uni.switchTab({
		url:"/pages/index/index"
	})
}

</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
</style>
